package oop第三章作业;
import  java.util.Scanner;

import oop第二章作业.Person;

public class Penguin {
    String  name;
    String  genter;
    int health;
    int intimacy;
    public Penguin(int s, String name, String genter, int health,int intimacy){
        this.health=health;
        this.genter=genter;
        this.name=name;
        this.intimacy=intimacy;
                if ( this.intimacy<0||this.intimacy >100){
                    System.out.println("我的名字叫"+this.name+"亲密度为"+this.intimacy+"健康值为"+this.health+"我的性别是"+this.genter);
                }else {
                    this.intimacy=60;
                    System.out.println("我的名字叫"+this.name+"亲密度为"+this.intimacy+"健康值为"+this.health+"我的性别是"+this.genter);
                }
    }
    public static void main(String[] args) {
        Scanner input= new Scanner(System.in);
        System.out.println("欢迎您来到宠物店！");
        System.out.println("请选择要领养的宠物");
        String  name1= input.next();
        System.out.println("请选择要领养的宠物类型（1、狗狗2、企鹅）");
        int s1=input.nextInt();
        System.out.println("请输入宠物性别");
        String  genter1= input .next();
        System.out.println("请输入宠物健康值");
        int health1=input.nextInt();
        System.out.println("亲密度");
        int v=input.nextInt();
        Penguin penguin =new Penguin(s1,name1,genter1,health1,v);

    }
}

